﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace App_Clinique.ClassLibrary.Entities
{
    [Serializable]
    public partial class Medicament
    {
        public Medicament()
        {

        }

        [Column("MedicamentID", Order = 0), DatabaseGenerated(DatabaseGeneratedOption.None), Key]
        public virtual Int64 MedicamentID { get; set; }

        [Column("Code"), Required]
        public virtual String Code { get; set; }

        [Column("Nom"), Required]
        public virtual String Nom { get; set; }

        [Column("Designation"), Required]
        public virtual String Designation { get; set; }

        [Column("CodeBarre"), Required]
        public virtual String CodeBarre { get; set; }

        [Column("Laboratoire"), Required]
        public virtual String Laboratoire { get; set; }

        [Column("Categorie"), Required]
        public virtual String Categorie { get; set; }

        /****************************************************************************************************
         * Foreign Keys - IDs
         ***************************************************************************************************/

        /****************************************************************************************************
         * Foreign Keys - Reference Objects
         ***************************************************************************************************/

        /****************************************************************************************************
         * Collections
         ***************************************************************************************************/
        public virtual ICollection<OrdonnancesMedicaments> OrdonnancesMedicaments { get; set; }
    }
}
